#!/usr/bin/ruby

if ARGV.size < 1
	puts ARGV.size
	puts "Error, usage ./script/mongrel [start|stop]"
	exit 1
end

tmp = ARGV[0]

if tmp == "start"
	`mongrel_rails start -p 8000 -d`
elsif tmp == "stop" 
	`mongrel_rails stop`
end
